
<template>
  <div class="info_item" @click="fn">
    <div class="list">
      <div class="list_left">{{ title }}</div>
      <div class="list_right">
        <slot>{{ value }}</slot>
        <van-icon name="arrow" class="icon" v-if="!flag" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    value: String,
    flag: {
      default: false,
      type: Boolean,
    },
  },
  name: "",
  components: {},
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {
    fn() {
      this.$emit("listClick");
    },
  },
};
</script>
<style scoped lang='scss'>
.list {
  font-size: 20px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #8c8c9b;
  padding: 0 20px;
  box-sizing: border-box;
  width: 90%;
  margin: 0 auto;

  .list_right {
    color: #8c8c9b;
    img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      vertical-align: middle;
    }
  }
  .icon {
    margin-left: 10px;
  }
}
</style>
